package org.leon.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by leon.L on 2019/12/24.
 * Desc : 数据库连接信息对象，解析 sqlMapConfig.xml 获得
 */
public class Configuration {

    private DataSource dataSource;


    // key : mapper.xml中的 (namespace+select id); value : 一个 select 标签对象
    private Map<String, MapperStatement> sqlMapper = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MapperStatement> getSqlMapper() {
        return sqlMapper;
    }

}
